

<!--***** Variables de session y constantes *****-->


<script LANGUAGE="javascript">
	function formatoNumero(objeto, format) 
		  {  // use: formatoNumero(number, "format")
		            
		   var separator = ",";  // use comma as 000's separator
		   var decpoint = ".";  // use period as decimal point
		   var percent = "%";
		   var currency = "$";  // use dollar sign for currency             
		   var number

		  number = objeto.value
		  
		  if (format == "")
		     format = ",0.00"
		  
		  
		  if (number - 0 != number) return 0.00;  // if number is NaN return null
		  var useSeparator = format.indexOf(separator) != -1;  // use separators in number
		  var usePercent = format.indexOf(percent) != -1;  // convert output to percentage
		  var useCurrency = format.indexOf(currency) != -1;  // use currency format
		  var isNegative = (number < 0); number = Math.abs (number); 
		    
		    
		  if (usePercent) number *= 100;
		    format = strip(format, separator + percent + currency);  // remove key characters
		    number = "" + number;  // convert number input to string



		   // split input value into LHS and RHS using decpoint as divider
		  var dec = number.indexOf(decpoint) != -1;
		  var nleftEnd = (dec) ? number.substring(0, number.indexOf(".")) : number;
		  var nrightEnd = (dec) ? number.substring(number.indexOf(".") + 1) : "";

		   // split format string into LHS and RHS using decpoint as divider
		   dec = format.indexOf(decpoint) != -1;
		   var sleftEnd = (dec) ? format.substring(0, format.indexOf(".")) : format;
		   var srightEnd = (dec) ? format.substring(format.indexOf(".") + 1) : "";

		   // adjust decimal places by cropping or adding zeros to LHS of number
		  if (srightEnd.length < nrightEnd.length) 
		  {
		    var nextChar = nrightEnd.charAt(srightEnd.length) - 0;
		    nrightEnd = nrightEnd.substring(0, srightEnd.length);
		    if (nextChar >= 5) nrightEnd = "" + ((nrightEnd - 0) + 1);  // round up

		    //patch provided by Patti Marcoux 1999/08/06
		    while (srightEnd.length > nrightEnd.length) {
		      nrightEnd = "0" + nrightEnd;
		    }

		    if (srightEnd.length < nrightEnd.length)
		     {
		      nrightEnd = nrightEnd.substring(1);
		      nleftEnd = (nleftEnd - 0) + 1;
		    }
		  }
		   else 
		  {
		    for (var i=nrightEnd.length; srightEnd.length > nrightEnd.length; i++) 
		    {
		      if (srightEnd.charAt(i) == "0") nrightEnd += "0";  // append zero to RHS of number
		      else break;
		    }
		  }

		   // adjust leading zeros
		  sleftEnd = strip(sleftEnd, "#");  // remove hashes from LHS of format
		  while (sleftEnd.length > nleftEnd.length) 
		  {
		    nleftEnd = "0" + nleftEnd;  // prepend zero to LHS of number
		  }

		  if (useSeparator) nleftEnd = separate(nleftEnd, separator);  // add separator
		  var output = nleftEnd + ((nrightEnd != "") ? "." + nrightEnd : "");  // combine parts
		  output = ((useCurrency) ? currency : "") + output + ((usePercent) ? percent : "");
		  if (isNegative)
		   {
		    // patch suggested by Tom Denn 25/4/2001
		    output = (useCurrency) ? "(" + output + ")" : "-" + output;
		  }
		  
		  objeto.value = output
		  return output;
		}

		function strip(input, chars) 
		{  // strip all characters in 'chars' from input
		  var output = "";  // initialise output string
		  for (var i=0; i < input.length; i++)
		    if (chars.indexOf(input.charAt(i)) == -1)
		      output += input.charAt(i);
		  return output;
		}

		function separate(input, separator) 
		{  // format input using 'separator' to mark 000's
		  input = "" + input;
		  var output = "";  // initialise output string
		  for (var i=0; i < input.length; i++) 
		  {
		    if (i != 0 && (input.length - i) % 3 == 0) output += separator;
		    output += input.charAt(i);
		  }
		  return output;
		}
		
		function MM_preloadImages() 
		{ //v3.0
  			var d=document; 
			if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    		var i,j=d.MM_p.length,a=MM_preloadImages.arguments; 
			for(i=0; i<a.length; i++)
    			if (a[i].indexOf("#")!=0)
				{ 
					d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];
				}
		}
}

// Funci�n cuenta_seleccionados: indica si el usuario ha seleccionado m�s de 10 checkbox en una secci�n.
function cuenta (check)
{
	var cuenta_check = 0;
 	if (check.checked)
  		cuenta_check++;
 	else
  		cuenta_check--;
 	if (cuenta_check > 3)
 	{
  		alert ("Usted ha seleccionado m�s 10 elementos.");
  		check.checked = false;
  		cuenta_check--;
 	}
}
</script>





<!--***** Procedimientos Generales *****-->

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

	<title>Conexi�n Bancaribe - Personas - Mi�rcoles, 20 de Febrero del 2013 7:26:03 AM    [1,2]</title> <!-- 'WC-->

</head>

<script type="text/javascript">
	//var sobremenu1 = false;
	//var sobreheadermenu1 = false;
	function cerrarallnet()
	{
		document.form1.action = 'CBGE_Salir.asp';
		document.form1.submit();
	}
</script>
	
    <!-- Con el evento unload se verifica si el Cliente pulso la tecla X, para cerrar el navegador -->
	
		<FRAMESET onunload="window.open('CBGE_Salir.asp?','WSalida','height=350,width=600,top='+(screen.availHeight-350)/2+',left='+(screen.width-600)/2+',toolbar=no,menubar=no,location=no,scrollbars=no');" Rows="1,*" frameborder="NO" border="0" framespacing="0">
	
       <frame src="CBGE_frame_vacio.html" name="vacio" scrolling="NO" noresize>
       <frame src="CBGE_login_mensaje2008.asp" name="main" scrolling="auto" noresize>
    </frameset>
    <noframes>
        <body>
            <p>Su Navegador no soporta algunas prestaciones que son necesarias para ver estas p�ginas.</p>
        </body>
    </noframes>
</html>

